Skip to content

Conversation

@Blendify
Copy link
Member

extra_css_files was add in readthedocs/readthedocs.org@e759c50 but serves no purpose (not sure why it was added intially) users should use Sphinx.add_stylesheet instead.

`extra_css_files` was add in readthedocs/readthedocs.org@e759c50 but serves no purpose (not sure why it was added intially) users should use `Sphinx.add_stylesheet` instead.
@agjohnson agjohnson added the PR: work in progress Pull request is not ready for full review label Jul 30, 2017
@Blendify Blendify added this to the v0.2.6 milestone Jul 30, 2017
@Blendify
Copy link
Member Author

Actually looking at this there are several projects that use this. Is there a way to mark this as deprecated?

@Blendify Blendify added Needed: design decision A core team decision is required Support Support question labels Nov 30, 2017
@agjohnson
Copy link
Collaborator

Yeah, this is still in use by forks, so I wouldn't want to deprecate it either.

@agjohnson agjohnson closed this Nov 30, 2017
@Blendify Blendify deleted the remove-extra_css_files branch February 1, 2018 22:36
@agjohnson agjohnson removed this from the v0.3.1 milestone Mar 29, 2018
@htgoebel
Copy link

Well, this is used for add style sheets, which might be required to fine-tune the appearance where rst is coming to its limits.

@Blendify Blendify restored the remove-extra_css_files branch March 23, 2021 02:06
@Blendify Blendify reopened this Mar 23, 2021
@Blendify
Copy link
Member Author

This should still be removed to conform sphinx's new method for adding css files.

https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-html_css_files

This can be removed when we require sphinx2, there does not seem the be a way to deprecate this first.

@Blendify Blendify removed Needed: design decision A core team decision is required PR: work in progress Pull request is not ready for full review Support Support question labels Mar 23, 2021
@Blendify Blendify requested a review from a team March 23, 2021 05:27
@humitos
Copy link
Member

humitos commented Aug 23, 2023

I think we can target this for 3.0 and start raising a warning on 2.x.

@humitos humitos added this to the 3.0 milestone Aug 23, 2023
@humitos
Copy link
Member

humitos commented Nov 7, 2023

I just wanted to note that we had some issues when releasing 2.0 because of this chunk of code. I'm fine removing this since it adds no value over the built-in Sphinx feature.

@Blendify Blendify requested a review from a team as a code owner November 15, 2023 19:10
@Blendify
Copy link
Member Author

Updated the branch and waiting on approval for 2.0

@humitos
Copy link
Member

humitos commented Nov 16, 2023

Thanks for the update @Blendify. I don't think we will include this in 2.0 since we are on rc4 already and this will break projects already using this config. However, I'm 👍🏼 to remove this on 3.0 together with other breaking changes we are planning to do as well.

@agjohnson
Copy link
Collaborator

We definitely need to do a deprecation warning before removing an option like this.

Though this is a configuration we shouldn't have added, I also personally don't see much value in a deprecation like this given it's such a sideways change -- the code here isn't really presenting a problem for our maintenance and the user is not really better off being forced to change either.

If we do a deprecation in 3.0, we should emit a deprecation warning starting in 2.0

@humitos humitos mentioned this pull request Jul 24, 2024
humitos added a commit that referenced this pull request Aug 12, 2024
humitos added a commit that referenced this pull request Aug 20, 2024
* Tests: `sphinxdev` tox environment installs Sphinx from `master`

It seems we had a bug in the name and it wasn't installing Sphinx from `master`.
I expect this test to fail now because we pin `Sphinx<8`, but that's fine for now.

* Prepare for 3.0 release

- Drop Python <3.8
- Drop docutils <=0.18
- Add support for docutils 0.21
- Add support for Python 3.12

This follows the plan we wrote in
https://sphinx-rtd-theme.readthedocs.io/en/stable/development.html#roadmap-release-3-0-0

The main idea here is to move forward with newer versions and drop support for
old stuffs so we reduce the maintanence burden.

* Update CircleCI matrix

* More fixes to CircleCI

* Run test over Sphinx 8.0

* Update contributing guide

* Remove deprecated `readthedocs-sphinx-ext`

* Remove old Sphinx versions

* Uninstall our extension

* Show a warning if `extra_css_files` is in the `html_context`

See #450

* Update development page

* Add deprecate warning for `analytics_` theme options

* Update docs

* Remove unused dependency

Closes #1533

* Remove environment variables from our docs

This was already added in a more generic way to the theme itself.

* Require Sphinx >=6.0

* Deprecation warning about `get_html_theme_path`

See #1479 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants